<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%@page import="fr.cephb.locustree.Track"%><jsp:include page="/WEB-INF/jsp/xhtml-header.jsp"/><head>
<jsp:include page="/WEB-INF/jsp/header.jsp"/>
<title>Browse ${organism.name}</title>
</head>
<body>
<h1>LTServer: Browse ${organism.name}</h1>
<div style="text-align:right;"><a href="${pageContext.request.contextPath}/locustree?action=search">Search</a></div>
<div style="text-align:center;font-size:200%;color:darkgray;">${organism.description}</div>
<div style="border: thin solid darkgray; margin: 10px; padding: 10px; background-color:#D0D0D0; color: black;">
<form method="POST" action="${pageContext.request.contextPath}/locustree" target="svgPane">
<input type="hidden" name="action" value="export"/>
<input type="hidden" name="organism-id" value="${organism.id}"/>
<fieldset>
<legend>Position</legend>
<div style="text-align:center;">
	<label for="q">Search (e.g. <i>chr1:100000-200000</i>) </label>
	<input type="text" id="q" name="query" size="20" value="${requestScope['query']}"/>
	
	<label for="width">Width</label>
	<input type="text" id="width" name="width" size="5" value="${requestScope['width']}"/>
	
	<label for="mode">Mode</label>
	<select id="mode" name="mode">
		<option value="svg">svg</option>
		<option value="txt">tab-delim</option>
	</select>
	
	
	<input type="checkbox" id="download" name="download"/>
	<label for="download">Download</label>
	
	<input type="checkbox" id="gz" name="gz"/>
	<label for="gz">GZIP</label>
	
	<input type="submit"/>
</div>
</fieldset>


<% for(Track track: (java.util.List<Track>)request.getAttribute("tracks"))
		{
		request.setAttribute("track",track);
		%>
		<jsp:include page="/WEB-INF/jsp/configtrack.jsp"/>
		<% } %>

</form>
</div>

</body>
<jsp:include page="/WEB-INF/jsp/xhtml-footer.jsp"/>